<?php
namespace app\admin\controller;
use think\Controller;
use think\Session;
class Common extends Controller{
    public function __construct(){
        parent::__construct();
        
        if(!Session::get('name')){
            $this->error('请先登录再访问',url('Login/login'));
        }
    }
    
    
    
    
    
}